package com.itheima.sevice;

import com.itheima.pojo.Role;
import com.itheima.pojo.User;
//import org.springframework.security.core.userdetails.UserDetails;

import java.util.List;
import java.util.Set;

public interface UserService {
    /**
     * 查询用户信息
     * @param username
     * @return
     */
    User loadUserByUsername(String username);

    /**
     * 查询用户角色
     * @param id
     * @return
     */
    Set<Role> loadRolesByUserId(Integer id);
}
